package com.jt.demo04Post;

import com.jt.demo3.User;
import org.springframework.web.bind.annotation.*;

@RestController
@RequestMapping("/axios")//
@CrossOrigin   //跨域问题
public class Axiospost {
    //6. 将json串转化java @RequestBody   将返回数据转json @ResponseBody
    @ResponseBody
    @PostMapping("/saveUser2")
    public User saveUser2(
            @RequestBody User user){
        return user;
    }
}
